/*
 * @Author: Zhangxx 2425792130@qq.com
 * @Date: 2024-07-01 15:16:56
 * @LastEditors: Zhangxx 2425792130@qq.com
 * @LastEditTime: 2024-07-01 15:59:27
 * @FilePath: \geek-pc\src\store\userStore.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 用户模块
import { makeAutoObservable } from "mobx"
import { http } from '../utils'

class UserStore {
  userInfo = {}
  constructor() {
    makeAutoObservable(this)
  }
  async getUserInfo() {
    const res = await http.get('/user/profile')
    this.userInfo = res.data
    // console.log(this.userInfo,res.data,'000000000000000')
  }
}

export default UserStore